import 'package:flutter/material.dart';

class ProductPage extends StatefulWidget {
  final Map arguments;

  ProductPage({Map arguments}) : this.arguments = arguments ?? {"id": "未传入id"};

  @override
  _ProductPageState createState() => _ProductPageState();
}

class _ProductPageState extends State<ProductPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('商品详情'),
      ),
      body: Center(
        child: Container(
          child: Text("商品ID:${widget.arguments["id"]}"),
        ),
      ),
    );
  }
}
